//
//  MPTLiveCountDownView.h
//  MPTLive
//
//  Created by caixun on 15/8/20.
//  Copyright (c) 2015年 Jeakin. All rights reserved.
//

#import <UIKit/UIKit.h>

static const int kDefaultCountdownFrom = 5;

@class MPTLiveCountDownView;

@protocol MPTLiveCountdownDelegate <NSObject>

@required
- (void)countdownFinished:(MPTLiveCountDownView *)view;
- (void)countdownValueToOne:(MPTLiveCountDownView *)view;

@end


@interface MPTLiveCountDownView : UIView

@property (nonatomic) int countdownFrom;
@property (nonatomic) NSString *finishText;
@property (nonatomic) UIColor *countdownColor;
@property (nonatomic) NSString *fontName;
@property (nonatomic) float backgroundAlpha;
@property (nonatomic, strong) UIImageView *finishImgv;

@property (nonatomic, weak) id<MPTLiveCountdownDelegate> delegate;

- (void)updateAppearance;
- (void)start;
- (void)stop;

@end
